from service.sync import SyncDataService
from table.model.v1 import (
    ActivityModel,
    ActivityOrderModel,
    CodeBatchModel,
    CodeModel,
    PrizeModel,
)

sync = SyncDataService()


def load_old_data():
    sync.load_old_data(CodeBatchModel)
    sync.load_old_data(CodeModel)
    sync.load_old_data(PrizeModel)
    sync.load_old_data(ActivityModel)
    sync.load_old_data(ActivityOrderModel)


if __name__ == "__main__":
    #  加载旧数据
    # load_old_data()
    #  同步数据
